package com.example.travelservlet.fans.service;

import com.example.travelservlet.entity.Dynamic;
import com.example.travelservlet.entity.DynamicDto;
import com.example.travelservlet.entity.User;
import com.example.travelservlet.fans.dao.FansMapper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

@Service
public class FansService {
    @Autowired
    private FansMapper mapper;
    public List<User> findFans(String  loginname) {
        List<User> fans = new ArrayList<>();
        fans = mapper.findFans(loginname);
        return fans;
    }
}
